import request from '@/utils/request'

export function getOrderList (params) {
  return request({
    url: '/api/order/list',
    method: 'get',
    params
  })
}

export function refundOrder (orderNo) {
  return request({
    url: '/api/order/refund',
    method: 'post',
    data: { orderNo }
  })
}

export function exportOrder (params) {
  return request({
    url: '/api/order/export',
    method: 'get',
    params,
    responseType: 'blob'
  })
}